Keycloak REST Services 1.5.0-Final

Path: / admin / realms / {realm} / clients / {id} / roles

List all roles for this realm or client

Path parameters:
realm - realm name (not id!)
id - id of client (not client-id)

Sub-Resources
Resources
NameDescription
{role-name}Get a role by name

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/clients/{id}/rolesList all roles for this realm or client
POST /admin/realms/{realm}/clients/{id}/rolesCreate a new role for this realm or client

Method Detail

GET /admin/realms/{realm}/clients/{id}/roles

List all roles for this realm or client

HTTP Example:
GET /admin/realms/{realm}/clients/{id}/roles
API Example:

RoleContainerResource.getRoles({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */});

Output:
List<RoleRepresentation> -
Produces:
application/json

POST /admin/realms/{realm}/clients/{id}/roles

Create a new role for this realm or client

HTTP Example:
POST /admin/realms/{realm}/clients/{id}/roles
API Example:

RoleContainerResource.createRole({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */,
  '$entity': /* rep */});

Input:
RoleRepresentation
Output:
Response -
Consumes:
application/json

Keycloak REST Services 1.5.0-Final